/*
 * @Author: zhangzhanyan 
 * @Date: 2021-07-18 20:06:58 
 * @Last Modified by: zhangzhnayan
 * @Last Modified time: 2021-07-23 21:22:37
 */

import { Icon } from 'antd-mobile';
import {history} from "umi"
import store from "../../store/index"


import React, { Component } from 'react';

class HomeHeader extends Component {
    city=()=>{
        history.push("/city")
    }
    componentDidMount(){
        console.log(store.title)
    }
    render() {
        return (
            <div>
                 <p className="warp-header">
            <div className="warp-header-one">
                <div onClick={()=>{this.city()}}>{store.title} <i><Icon type={"down"} /></i></div>
                <i onClick={()=>{history.push("/my")}}><Icon type={"check-circle"}/></i>
            </div>
            <div  className="warp-header-two"></div>
            <div  className="warp-header-three">
                <i>Q</i>
                <span>输入小区或商圈开始找房咯~</span>
            </div>

            
        </p>
            </div>
        );
    }
}

export default HomeHeader;


